    //我的鸟巢
    var oBirdnest=document.getElementById('header_li_two');
    var oBirdyin=document.getElementById('header_ul_three');

	oBirdnest.onmouseover=function(){
	    oBirdyin.style.display='block';
		oBirdnest.style.background='#ffffff';
	}
	oBirdnest.onmouseout=function(){
	    oBirdyin.style.display='none';
		oBirdnest.style.background='#fff0ed';
	}
	//购物车
	var oGw=document.getElementById('header_li_one');
	var oSp=document.getElementById('div_gouwu');
    oGw.onmouseover=function(){
		oGw.className="header_li_one_hover header_li_one"
	    oSp.style.display='block';
	}
	oGw.onmouseout=function(){
		oGw.className="header_li_one"
	    oSp.style.display='none';
	}
	oSp.onmouseover=function(){
		oGw.className="header_li_one_hover header_li_one"
	    oSp.style.display='block';
	}
	oSp.onmouseout=function(){
		oGw.className="header_li_one"
	    oSp.style.display='none';
	}
	//戒托
	var oTxt=document.getElementById('input_text');
	oTxt.onclick=function(){
	    oTxt.value='';
	}
	//导航
	var oNv=document.getElementById('nav_ul_homepage');
	var oLis=getByClass(oNv,'lis-item');
	var oDivs=getByClass(oNv,'nav_hidden');
	var oDs=getByClass(oNv,'nav_diamond');
	//console.log(oLis.length);
	for(var i=0;i<oLis.length;i++){
	    oLis[i].id=i;
		oLis[i].onmouseover=function(){
		    for(var j=0;j<oLis.length;j++){
				var oAss=oLis[j].getElementsByTagName('a')[0];
			    oDivs[j].style.display='none';
				oDs[j].style.display='none';
                oAss.className='a_homepage';
			}
			oDivs[this.id].style.display='block';
			oDs[this.id].style.display='block';
			var oAss=oLis[this.id].getElementsByTagName('a')[0];
            oAss.className='a_homepage_hover';
		}
		oLis[i].onmouseout=function(){
		    oDivs[this.id].style.display='none';
			oDs[this.id].style.display='none';
			var oAss=oLis[this.id].getElementsByTagName('a')[0];
            oAss.className='a_homepage';
		}
	}
	function getByClass(oParent,sClass){
		var aEle=oParent.getElementsByTagName('*');	//*抓取所有元素
		var result=[];
		for(var i=0;i<aEle.length;i++){
			var arr=aEle[i].className.split(' ');
			for(var j=0;j<arr.length;j++){
				if(arr[j]==sClass){
					result.push(aEle[i]);
					break;
				}
			}
		}
		return result;
	}
	//咨询
	var oCTclose=document.getElementById('a_consult_close');
	var oConsult_content=document.getElementById('div_fixed_consult_content');
	var oConsult=document.getElementById('div_fixed_consult');

    oCTclose.onclick=function(){
	    oConsult_content.style.display="none";
	}
	oConsult.onclick=function(){
	    oConsult_content.style.display="block";
	}
	//回到顶部
    var oBtn=document.getElementById('btn');
	//滚动条滚动时触发
	var bYh=true;
	var oTimer=null;
	window.onscroll=function(){	
		if(!bYh)
		{
			clearInterval(oTimer);
		}
		bYh=false;
	var clientHeight=document.documentElement.clientHeight;//获取界面可视区的高度
	var osTop=document.documentElement.scrollTop||document.body.scrollTop;
	if(osTop>=clientHeight){
		 oBtn.style.display='block';
	}
	else{
		 oBtn.style.display='none';
	}
	}
	oBtn.onclick=function(){
		 oTimer=setInterval(function(){
		     var osTop=document.documentElement.scrollTop||document.body.scrollTop;
		     var iSpeed=Math.floor(-osTop/10);
			 if(osTop==0){
			     clearInterval(oTimer);
			 }
			 bYh=true;
		     document.documentElement.scrollTop=document.body.scrollTop=osTop+iSpeed;
		 },30);
		
	    }
	 
	 //底部
    var area = document.getElementById('friend');
    var iliHeight = 18;//单行滚动的高度
    var speed = 50;//滚动的速度
    var time;
    var delay= 2000;
    area.scrollTop=0;
    area.innerHTML+=area.innerHTML;//克隆一份一样的内容
    function startScroll(){
	    time=setInterval(scrollUp,speed);
	    area.scrollTop++;
	    }
    function scrollUp(){
	    if(area.scrollTop% iliHeight==0){
		    clearInterval(time);
		    setTimeout(startScroll,delay);
		 }
		 else{
			 area.scrollTop++;
			 if(area.scrollTop >= area.scrollHeight/2){
				 area.scrollTop=0;
				 }
			 }
	 }
	 setTimeout(startScroll,delay);


 